package com.baizhi.web_demo;

public class RegDemo03 {
    public static void main(String[] args) {
        String str = "Java";

        String reg = "^[a-zA-Z]+$";

        if(str.matches(reg)){
            System.out.println(true);
        }else{
            System.out.println(false);
        }
    }
}
